/**
 * jims
 */
package com.jims.master.modules.sys.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.sys.dao.SysProtocolDao;
import com.jims.master.modules.sys.entity.SysProtocol;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户协议Service
 * @author qlx
 * @version 2017-04-28
 */
@Service
@Transactional(readOnly = true)
public class SysProtocolService extends CrudService<SysProtocolDao, SysProtocol> {

	@Override
    public SysProtocol get(String id) {
		return super.get(id);
	}
	
	@Override
    public List<SysProtocol> findList(SysProtocol sysProtocol) {
		return super.findList(sysProtocol);
	}
	
	@Override
    public Page<SysProtocol> findPage(Page<SysProtocol> page, SysProtocol sysProtocol) {
		return super.findPage(page, sysProtocol);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int save(SysProtocol sysProtocol) {
		return super.save(sysProtocol);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int delete(SysProtocol sysProtocol) {
		return super.delete(sysProtocol);
	}

	public SysProtocol getByType(SysProtocol sysProtocol){
		return dao.getByType(sysProtocol);
	}
}